package io.renren.modules.workmanagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.workmanagement.entity.ClassCourseEntity;
import io.renren.modules.workmanagement.vo.ClassCourse.ClassCourseSelectionVO;
import io.renren.modules.workmanagement.vo.SubmitWork;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author yewei
 * @email sunlightcs@gmail.com
 * @date 2022-04-16 16:11:24
 */
public interface ClassCourseService extends IService<ClassCourseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    ClassCourseSelectionVO getSelections(Long userId);

    void saveClassCourse(ClassCourseEntity classCourse, Long userId);

    ClassCourseEntity getByClassIdAndCourseId(Long classId, Long courseId);

    List<ClassCourseEntity> getByTeacherId(Long userId);

    PageUtils queryPageMyClass(Map<String, Object> params);

    void submitWork(SubmitWork submitWork);

    List<ClassCourseEntity> getByClassId(Long classId);

    void removeClassCourseByIds(List<Integer> asList);
}

